package com.lzl.edu.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Id;
import javax.persistence.Table;

/**
 * <h3>lzl_ws</h3>
 * <p>商品对象</p>
 *
 * @author : 黎钟龙
 * QQ:1661548820
 * Mail：1661548820@qq.com
 * @date : 2022-04-06 14:47
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@Table(name = "tb_goods")//指定数据表
public class Goods {
    @Id//说明是Id
    @KeySql(useGeneratedKeys = true)//使用产生的key
    private Integer goodsId;
    private String goodsName;
    private Double goodsPrice;
    private Integer goodsNum;
    private String goodsImg;
    private Integer goodsType;
    private Double goodsDiscount;
    //添加一个属性在Goods中
    private Integer identifyNo;

}
